package com.tcpudp.model;

import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
public class Message {
    private String id;
    private String connectionId;
    private String content;
    private String direction; // INBOUND, OUTBOUND
    private LocalDateTime timestamp;
    private String contentType; // TEXT, HEX
    
    public Message() {
        this.id = java.util.UUID.randomUUID().toString();
        this.timestamp = LocalDateTime.now();
    }
}